package com.sumainfor.pc.market.controller.rentadviser;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.RdActivityService;
import com.sumainfor.pc.market.service.RdPatrolViolationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 活动
 */
@RestController
@RequestMapping("/rentadviser/RdPatrolViolation")
public class RdPatrolViolationController implements Serializable {
    @Autowired
    private RdPatrolViolationService rdPatrolViolationService;
    /**
     * 运营部服务查询管家的违规记录
     */
    @GetMapping("/getRdPatrolViolationList")
    public JsonResult getRdPatrolViolationList(@RequestParam Map<String,Object> params){
        JsonResult result=new JsonResult();
        List<Map<String,Object>> list=rdPatrolViolationService.getRdPatrolViolationList(params);
        if (list!=null){
            result.put(list);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }
}
